﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GridViewAssignments.ascx.cs"
    Inherits="TempEmployees.Web.GridViewAssignments" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="GridViewAssignmentStatus.ascx" TagName="GridViewAssignmentStatus" TagPrefix="uc1" %>
<table style="width: 100%" dir="rtl">
    <tr>
        <td>
            <asp:CheckBox ID="CheckBoxShowNotActive" runat="server" Text="הצג העסקות לא פעילות"
                AutoPostBack="True" OnCheckedChanged="CheckBoxShowNotActive_CheckedChanged" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:GridView ID="ViewAssignments" runat="server" OnSelectedIndexChanged="GridViewAssignments_SelectedIndexChanged"
                OnRowCreated="GridViewAssignments_RowCreated" OnRowEditing="GridViewAssignments_FormRequest"
                AllowSorting="True" OnDataBound="ViewAssignments_DataBound" DataSourceID="AssignmentsDataSource">
                <Columns>
                    <asp:ImageField DataImageUrlField="ICON_URL">
                    </asp:ImageField>
                    <asp:CommandField SelectText="&#1489;&#1495;&#1512;" ShowSelectButton="True" />
                    <asp:CommandField EditText="" HeaderText="טופס" ShowEditButton="True" />
                </Columns>
            </asp:GridView>
            <asp:Label ID="LabelEmptyQueryAssignments" runat="server" Text="לא נמצאו עובדים"
                Visible="False"></asp:Label>
        </td>
    </tr>
</table>
<asp:ObjectDataSource ID="AssignmentsDataSource" runat="server" TypeName="TempEmployees.Web.GridViewAssignments"
    SelectMethod="GetDGridViewDataTable" OnObjectDisposing="ObjectDataSource_ObjectDisposing"
    OnObjectCreating="ObjectDataSource_ObjectCreating"></asp:ObjectDataSource>
